7.5
HIGH CVSS 3.1
CVE-2025-30204
golang-jwt Denial of Service (DoS)
Description

golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.

INFO

Published Date :

March 21, 2025, 10:15 p.m.

Last Modified :

April 10, 2025, 1:15 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-30204 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
Solution
Update golang-jwt library to a patched version to fix excessive memory allocation.
  • Update golang-jwt to version 5.2.2 or later.
  • Update golang-jwt to version 4.5.2 or later.
Public PoC/Exploit Available at Github

CVE-2025-30204 has a 4 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-30204 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-30204 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Render the CRDs from the Trivy Operatr as ASCII tables in your terminal

kubernetes trivy trivy-operator

Go

Updated: 3 months ago
1 stars 0 fork 0 watcher
Born at : May 22, 2025, 9:57 p.m. This repo has been linked 6 different CVEs too.

github runner

Dockerfile Shell

Updated: 1 month, 1 week ago
2 stars 0 fork 0 watcher
Born at : March 4, 2025, 9:38 p.m. This repo has been linked 43 different CVEs too.

All Public RunWhen Helm Charts - Managed by terraform

Smarty Shell Dockerfile

Updated: 3 days, 7 hours ago
1 stars 0 fork 0 watcher
Born at : Sept. 18, 2023, 10:09 a.m. This repo has been linked 54 different CVEs too.

README for Github profile

Go

Updated: 3 months, 3 weeks ago
3 stars 1 fork 1 watcher
Born at : Nov. 12, 2022, 8:30 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-30204 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-30204 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Apr. 10, 2025

    Action Type Old Value New Value
    Changed Description golang-jwt is a Go implementation of JSON Web Tokens. Prior to 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2. golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.
    Added Reference https://github.com/golang-jwt/jwt/commit/bf316c48137a1212f8d0af9288cc9ce8e59f1afb
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Apr. 04, 2025

    Action Type Old Value New Value
    Added Reference https://security.netapp.com/advisory/ntap-20250404-0002/
  • New CVE Received by [email protected]

    Mar. 21, 2025

    Action Type Old Value New Value
    Added Description golang-jwt is a Go implementation of JSON Web Tokens. Prior to 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-405
    Added Reference https://github.com/golang-jwt/jwt/commit/0951d184286dece21f73c85673fd308786ffe9c3
    Added Reference https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact